package com.geez.bbl.db.type;

import java.util.HashMap;
import java.util.Map;

/**
 * User: biniam.gebremichael
 * Date: Sep 7, 2010
 */
public class Book {
    private int id;
    private String tiName;
    private String enName;
    private String enAbb;
    private int chapterSize;
    private int verseSize;
    private Map<Integer, BblChapter> chapters = new HashMap<Integer, BblChapter>();

    public Book(int id, String tiName, String enName,String enAbb, int chapterSize, int verseSize) {
        this.id = id;
        this.tiName = tiName;
        this.enName = enName;
        this.enAbb = enAbb;
        this.chapterSize = chapterSize;
        this.verseSize = verseSize;
    }

    public int getId() {
        return id;
    }

    public String getTiName() {
        return tiName;
    }

    public String getEnName() {
        return enName;
    }

    public int getChapterSize() {
        return chapterSize;
    }

    public int getVerseSize() {
        return verseSize;
    }

    public void addChapter(int id, BblChapter c) {
        chapters.put(id, c);
    }

    public Map<Integer, BblChapter> getChapters() {
        return chapters;
    }

     public BblChapter getChapter(int id) {
        return chapters.get(id);
    }

    public String getEnAbb() {
        return enAbb;
    }
}
